<template>
  <div class="home-banner">
    <carousel :sliders="sliders" auto-play />
  </div>
</template>

<script setup >
import { ref } from 'vue';
import Home from '@/api/modules/home';
const sliders = ref([])
Home.bannerList().then(({ code, result }) => {
  if (code == 1) {
    sliders.value = result
  }
})

</script>

<style lang="less" scoped>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}

.xtx-carousel {
  ::v-deep .carousel-btn.prev {
    left: 270px;
  }

  ::v-deep .carousel-indicator {
    padding-left: 250px;
  }
}
</style>
